import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn } from 'typeorm';

@Entity('station_file')
export class StationFile {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column()
  fileKey: string;

  @Column()
  originalName: string;

  @Column()
  filePath: string;

  @Column()
  mimeType: string;

  @Column({ type: 'int' })
  size: number;

  @CreateDateColumn()
  uploadTime: Date;
}


@Entity('station_meta')
export class StationMeta {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column()
  fileKey: string; // 关联的文件标识

  @Column()
  stationId: string;

  @Column()
  stationTypeId: string;

  @CreateDateColumn()
  createTime: Date;
}
